package com.cold.common.domain;

import com.cold.common.annotation.Excel;
import com.cold.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 主机对象 cc_host
 * 
 * @author cold
 * @date 2024-02-29
 */
public class Host extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主机id */
    private Long id;

    /** 主机代码 */
    @Excel(name = "主机代码")
    private String code;

    /** 主机类型 0 冷库 1 冷柜  2 冷藏车 */
    @Excel(name = "主机类型 0 冷库 1 冷柜  2 冷藏车")
    private Long type;

    /** 面积 */
    @Excel(name = "面积")
    private Long area;

    /** 状态 */
    @Excel(name = "状态")
    private Long status;

    /** 是否删除 0 否 1 是  */
    @Excel(name = "是否删除 0 否 1 是 ")
    private Long deleted;

    /** 区域编号 */
    @Excel(name = "区域编号")
    private Long areaId;

    /** 管理员id */
    @Excel(name = "管理员id")
    private Long managerId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setType(Long type) 
    {
        this.type = type;
    }

    public Long getType() 
    {
        return type;
    }
    public void setArea(Long area) 
    {
        this.area = area;
    }

    public Long getArea() 
    {
        return area;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setDeleted(Long deleted) 
    {
        this.deleted = deleted;
    }

    public Long getDeleted() 
    {
        return deleted;
    }
    public void setAreaId(Long areaId) 
    {
        this.areaId = areaId;
    }

    public Long getAreaId() 
    {
        return areaId;
    }
    public void setManagerId(Long managerId) 
    {
        this.managerId = managerId;
    }

    public Long getManagerId() 
    {
        return managerId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("type", getType())
            .append("remark", getRemark())
            .append("area", getArea())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("deleted", getDeleted())
            .append("areaId", getAreaId())
            .append("managerId", getManagerId())
            .toString();
    }
}
